package pers.cocoadel.springcloud.service.impl;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import pers.cocoadel.springcloud.entities.CommonResult;

import java.math.BigDecimal;

@FeignClient(value = "cloud-alibaba-seata-account")
public interface AccountService
{
    @PostMapping("/account/decrease")
    CommonResult<?> decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}
